﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CloudPms.Common.Utils
{
    /// <summary>
    /// 界面使用的基础字典
    /// <para>--------------------------</para>
    /// <para>@Author: cnalexi@gmail.com</para> 
    /// <para>@Create: 2012/4/6</para> 
    /// </summary>
    public class BaseCode
    {
        #region ☆ 1 ------ 性别类型 -------- ☆

        /// <summary>
        /// 性别
        /// </summary>
        public enum Gender
        {
            /// <summary>
            /// 女性
            /// </summary>
            Female=0,
            /// <summary>
            /// 男性
            /// </summary>
            Male = 1,
            /// <summary>
            /// 未知
            /// </summary>
            Unknow=2,
        }

        /// <summary>
        /// 获取所有性别
        /// </summary>
        public static IDictionary<string,int> GetAllGender()
        {
            IDictionary<string, int> dict = new Dictionary<string, int>();

            dict.Add("女", 0);
            
            dict.Add("男", 1);
            
            dict.Add("未知", 2);
        
            return dict;
        }

        #endregion

        #region ☆ 2 ------ 电话等级 -------- ☆

        /// <summary>
        /// 电话等级
        /// </summary>
        public enum PhoneLevel
        {
            /// <summary>
            /// 内线
            /// </summary>
            InsideLine = 0,

            /// <summary>
            /// 市话
            /// </summary>
            CityCall = 1,

            /// <summary>
            /// 国内长途
            /// </summary>
            NationalCall = 2,

            /// <summary>
            /// 国际长途
            /// </summary>
            InternationalCall = 3,
        }

        /// <summary>
        /// 获取所有电话等级
        /// </summary>
        /// <returns></returns>
        public static IDictionary<string, int> GetPhoneLevel()
        {
            IDictionary<string, int> dict = new Dictionary<string, int>();

            dict.Add("内线", 0);

            dict.Add("市话", 1);

            dict.Add("国内长途", 2);

            dict.Add("国际长途", 3);

            return dict;
        }

        #endregion

        #region ☆ 3 ------ 渠道信息 -------- ☆

        public enum ChannelID
        {
            /// <summary>
            /// 上门散客
            /// </summary>
            WalkIn = 1,

            /// <summary>
            /// 中央预订CRS
            /// </summary>
            CRS = 2,

            /// <summary>
            /// 官网WEB
            /// </summary>
            Web = 3,

            /// <summary>
            /// 手机客户端APP
            /// </summary>
            APP = 7
        }

        #endregion

    }
}
